package com.zhoukx.strategy;

public class ToyDuck extends Duck {
    @Override
    public void display() {
        System.out.println(" 玩具鸭 ");
    }
    // 重写父类的所有的方法
    @Override
    public void quack() {
        System.out.println("玩具鸭不会叫......");
    }
    @Override
    public void swim() {
        System.out.println("玩具鸭不会游泳.......");
    }
    @Override
    public void fly() {
        System.out.println("玩具鸭不会飞.......");
    }

}
